package com.uaijug.dengue.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;


public class BuscarFocosActivity extends Activity implements OnClickListener,Runnable {

	protected static final int ATUALIZAR_TELA = 1;

	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);

		setContentView(R.layout.buscar_foco);

		Button b = (Button) findViewById(R.id.btBuscar);
		b.setOnClickListener(this);
	}

	public void onClick(View v) {
		//Faz busca em outra Thread
		new Thread(this).start();
	}

	/**
	 * @see java.lang.Runnable#run()
	 */
	public void run() {

		try {

			Intent intent=  new Intent(this,ListaFocos.class);
			
			startActivity(intent);

		} catch (Throwable e) {
			Log.i(Constantes.DEBUG.LOG, e.getMessage(), e);
		}
	}
}
